
def common_asser(test_case,expect_result,resp):
    """

    :param test_case:
    :param expect_result: 实际结果
    :param resp: 预期结果
    :return: Null
    """
    json_data = resp.json()

    test_case.assertEqual(expect_result['status_code'],resp.status_code)
    test_case.assertEqual(expect_result['success'], json_data.get("success"))
    test_case.assertEqual(expect_result['code'], json_data.get("code"))
    test_case.assertIn(expect_result['message'], json_data.get("message"))
